<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Mp3 Seller</title>
</head>
<body>
	<jsp:include page = "/geral/index.jsp" />
	<%String msg =  (String) request.getAttribute("msg"); 
	String musica =  (String) request.getParameter("musica");
	String valor =  (String) request.getParameter("valor");
	String cliente =  (String) request.getParameter("cliente");
	String data =  (String) request.getParameter("data");
	%>
	<%if(msg != null && !msg.isEmpty()){ %>
		<h2><%=msg%></h2>
	<%} %>	
	<%if(musica != null && valor != null && cliente != null && data != null ){ %>
		<input type="button" value="Iprimir boleto de Compra" onclick="window.open('geral/boletoPdf.jsp?musica=<%=musica%>&valor=<%=valor%>&cliente=<%=cliente%>&data=<%=data%>', 'comprovante','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=800')">
	<%} %>
</body>
</html>